#!/usr/bin/env pythonBasics
# -*-coding:utf-8 -*-

# Author:super
import pymysql


def conn():
	try:
		conn = pymysql.connect(host='localhost', user='root', passwd='asd888/==', db='six')
	except BaseException as e:
		print(e.args[0])
	else:
		cur = conn.cursor()
		sql = 'select * from user;'
		cur.execute(sql)
		print(cur.fetchone())
	finally:
		cur.close()
		conn.close()

if __name__ == '__main__':
	conn()